import { configureStore } from '@reduxjs/toolkit'
import counterReducer from '@/store/features/counter/counterSlice.ts'

export const store = configureStore({
  reducer: {
    counter: counterReducer
  }
})

export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;
